Skip to content

Remove unnecessary xref sorting on every query#25746

Closed
trufae wants to merge 1 commit intomasterfrom
optimize/remove-xref-sorting
Closed

Remove unnecessary xref sorting on every query#25746
trufae wants to merge 1 commit intomasterfrom
optimize/remove-xref-sorting

Conversation

@trufae
Copy link
Copy Markdown
Collaborator

@trufae trufae commented Apr 8, 2026

Summary

  • Remove RVecAnalRef_sort calls from r_anal_refs_get, r_anal_xrefs_get, and r_anal_xrefs_get_from
  • These were already marked // XXX not needed? and sorting on every query is wasteful

Test plan

  • Verify xref counts are identical to master on test binaries
  • Run r2r test suite

https://claude.ai/code/session_015tU8A23whE5bgreK4UoDNM

@trufae trufae force-pushed the optimize/remove-xref-sorting branch from a03c64c to ff08e8b Compare April 8, 2026 11:17
@radare radare force-pushed the optimize/remove-xref-sorting branch from ff08e8b to 2d36f57 Compare April 30, 2026 11:11
@trufae trufae force-pushed the optimize/remove-xref-sorting branch from 2d36f57 to 20f2445 Compare April 30, 2026 11:34
@trufae
Copy link
Copy Markdown
Collaborator Author

trufae commented Apr 30, 2026

well its not reliable. its not jsut unsorted, each run returns different order. so sorting is mandatory

@trufae trufae closed this Apr 30, 2026
@trufae trufae deleted the optimize/remove-xref-sorting branch April 30, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants